from .base import HookBase
from .priority import Priority


class DefaultHook(HookBase):
    def __init__(self, priority=Priority.HIGHEST):
        super(DefaultHook, self).__init__(priority)

    def after_train_epoch(self, runner):
        runner._epoch+=1

    def after_train_iter(self, runner):
        runner._iter+=1
